import request from '@/router/axios'
import { baseUrl } from '@/config/env'

// 添加组织纪律
export function addOrganizationDiscipline(data) {
    return request({
        url: baseUrl + '/pc/organizational-discipline',
        method: 'post',
        data
    })
}

// 查询组织纪律
export function getOrganizationDiscipline(data) {
    return request({
        url: baseUrl + '/pc/organizational-discipline',
        method: 'get',
        params: data
    })
}

// 更新组织纪律
export function updateOrganizationDiscipline(data) {
    return request({
        url: baseUrl + '/pc/organizational-discipline',
        method: 'put',
        data
    })
}

// 删除组织纪律
export function deleteOrganizationDiscipline(data) {
    return request({
        url: baseUrl + '/pc/organizational-discipline',
        method: 'delete',
        data
    })
}
